﻿using System.ServiceModel;

namespace GettingStartedLib
{
    //接口定义
    //暴露接口出去个服务端和客户端调用
    [ServiceContract(Namespace = "http://Microsoft.ServiceModel.Samples")]
    public interface ICalculatorService //接口的名称不能随便改,会影响到客户端的app.config
    {
        [OperationContract]
        double Add(double n1, double n2);
        [OperationContract]
        double Subtract(double n1, double n2);
        [OperationContract]
        double Multiply(double n1, double n2);
        [OperationContract]
        double Divide(double n1, double n2);
    }
}